add_subdirectory(tests)

set(kritajxlimport_SOURCES
    JPEGXLImport.cpp
)

kis_add_library(kritajxlimport MODULE ${kritajxlimport_SOURCES})

target_link_libraries(kritajxlimport kritaui kritalibkra kritametadata ${JPEGXL_LIBRARIES})

install(TARGETS kritajxlimport  DESTINATION ${KRITA_PLUGIN_INSTALL_DIR})

set(kritajxlexport_SOURCES
    JPEGXLExport.cpp
    kis_wdg_options_jpegxl.cpp
    kis_jpegxl_export_tools.h
)

ki18n_wrap_ui(kritajxlexport_SOURCES kis_wdg_options_jpegxl.ui )

kis_add_library(kritajxlexport MODULE ${kritajxlexport_SOURCES})

target_link_libraries(kritajxlexport kritaui kritalibkra kritaimpex ${JPEGXL_LIBRARIES})

install(TARGETS kritajxlexport  DESTINATION ${KRITA_PLUGIN_INSTALL_DIR})

install( PROGRAMS  krita_jxl.desktop  DESTINATION ${XDG_APPS_INSTALL_DIR})
